package com.example.cxf;


import org.apache.cxf.endpoint.Server;
import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

public class ServerRunner {

    public static void main(String[] args) {
        JaxWsServerFactoryBean jaxWsServerFactoryBean = new JaxWsServerFactoryBean();
        jaxWsServerFactoryBean.setAddress("http://localhost:8080/hello");
        jaxWsServerFactoryBean.setServiceClass(HelloServiceImpl.class);
        Server server = jaxWsServerFactoryBean.create();
        server.start();
        System.out.println("webservice start");
    }
}
